package de.lot.model;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;

/**
 * Language for the actual learning outcome. Enables the users to save texts
 * in different languages.
 *
 * @author Stefan Kohler <kohler.stefan@gmail.com>
 */
@Entity
@Table(name = "LOLANGUAGE")
public class LoLanguage implements Serializable {

    private String code;
    private String name;
    private String country;

    @Id
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Length(max = 40)
    @NotNull
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Length(max = 40)
    @NotNull
    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }
}
